Avatar

Tag #Condition Variable


Condition Variable in .NET Framework

#Condition Variable #.NET Framework #Multi-thread #Lock Contention

Motivation

As a C++ programmer coming to the C# world, the thing I miss the most when writing multi-threaded programs is condition variable.

I googled for a while trying to find a built-in counterpart or a crafted solution in .NET Framework. I failed. The top results returned were either wrong, or a design that lacked generalization.